package com.xxgc.helloworld.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.Date;

//Lombok自动生成set get方法
@Data
//全参构造
@AllArgsConstructor
//无参构造
@NoArgsConstructor
public class Info {
    //返回状态码
    private Integer code;
    //返回信息
    private String msg;
    //返回的数据
    private Object data;
    //版本号
    private String version;
    //请求响应时间
    private Date ResponseDate;

    public Info(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public Info(Integer code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }
}
